package com.xuzz.study.spring.simpleioc.utils;

public class ClassUtils {
    public static ClassLoader getClassLoader()
    {
        return Thread.currentThread().getContextClassLoader();
    }

    public static Class findClass(String className)
    {
        try
        {
            return getClassLoader().loadClass(className);
        }
        catch (Exception e)
        {
            e.printStackTrace();
        }
        return null;
    }
}
